<template>
    <div>
        <van-nav-bar :title="title" :right-text="rightText" left-arrow @click-left="onClickLeft"
            @click-right="onClickRight" />
    </div>
</template>

<script>
export default {
    props:{
        title:{
            type: String,
            default: ''
        },
        rightText:{
            type:String,
            default:''
        },
        onClickRight: {
            type: Function,
            default: ()=>{}
        }
   },
   data(){
       return{
       }
   },
   methods: {
       onClickLeft() {
           Toast('返回');
       },
   },
}
</script>

<style lang="scss" scoped>
</style>
